﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Abp.AutoMapper;
using GN.Pay.Core.Entities;

namespace GN.Pay.Core.Values.TradeRefund
{
    /// <summary>
    /// 交易退款申请结果
    /// </summary>
    [AutoMap(typeof(TradeRefundApply), typeof(TradeRefundBook))]
    public class TradeRefundApplyResult : TradeRefundApplyBase<TradeRefundApplyResult>
    {
        /// <summary>
        /// 
        /// </summary>
        public TradeRefundApplyResult()
        {

        }

        /// <summary>
        /// 交易号
        /// </summary>
        [Required]
        [StringLength(maximumLength: 32)]
        public string TradeNo { get; set; }

        /// <summary>
        /// 通道Id
        /// </summary>
        public string ChannelId { get; set; }

        //申请状态
        public int ApplyState { get; set; }

        //申请状态消息
        [Required]
        [StringLength(maximumLength: 255)]
        public string ApplyStateMessage { get; set; }
    }
}
